package com.cho3.net.bean;

/**
 * @author yemao
 * @date 2017/4/9
 * @description 解析实体基类!
 */

public class BaseEntity<T> {
    private static String SUCCESS_CODE="200";//成功的code
    private String code;
    private String message;
    private T data;


    public boolean isSuccess(){
        return getResultCode().equals(SUCCESS_CODE);
    }
    public String getResultCode() {
        return code;
    }

    public void setResultCode(String code) {
        this.code = code;
    }

    public String getReason() {
        return message;
    }

    public void setReason(String reason) {
        this.message = reason;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
